import request from '@/utils/request'

// 查询厂区|生产车间l生产流水线列表
export function listWorkShopLine(query) {
  return request({
    url: '/wms/workShopLine/list',
    method: 'get',
    params: query
  })
}

// 查询厂区|生产车间l生产流水线详细
export function getWorkShopLine(id) {
  return request({
    url: '/wms/workShopLine/' + id,
    method: 'get'
  })
}

// 新增厂区|生产车间l生产流水线
export function addWorkShopLine(data) {
  return request({
    url: '/wms/workShopLine',
    method: 'post',
    data: data
  })
}

// 修改厂区|生产车间l生产流水线
export function updateWorkShopLine(data) {
  return request({
    url: '/wms/workShopLine',
    method: 'put',
    data: data
  })
}

// 删除厂区|生产车间l生产流水线
export function delWorkShopLine(id) {
  return request({
    url: '/wms/workShopLine/' + id,
    method: 'delete'
  })
}
